package compressionSerialisation;

import java.io.Serializable;

public class SerialisableObj implements Serializable {

    String tigrou = "tigro";
    double[][][] tab;
    int N = 500;

    public SerialisableObj() {
        tab = new double[N][N][N];
        for (int i = 0; i < N; i++) {
            for (int j = 0; j < N; j++) {
                for (int k = 0; k < N; k++) {
                    tab[i][j][k] = Math.random() * 100;
                }
            }
        }

    }

    public String getTitle() {
        /*
         for(int i=0;i<N;i++)
         for(int j=0;j<N;j++)
         for(int k=0;k<N;k++)
         System.out.println(tab[i][j][k]);
        
         */
        return tigrou;

    }

    public static void main(String args[]) {
        SerialisableObj s = new SerialisableObj();
        GzipDialogue.saveGZipObject(s, "titi");


    }
}
